package com.yucc.girlimages.ad;

import android.content.Context;

public class AdPlatformClient {

	public static final String WAPS = "Waps" ;
	public static final String APPJOY = "appjoy" ;
	public static final String DATOUNIAO = "datouniao" ;
	
	public static final AdPlatform getAdPlatform(Context context, String platformName){
		if(WAPS.equals(platformName)) return WapsAd.getInstance(context) ;
		if(APPJOY.equals(platformName)) return AppJoyAd.getInstance(context) ;
		if(DATOUNIAO.equals(platformName)) return DatouniaoAd.getInstance(context) ;
		else throw new IllegalArgumentException("could only set ad platform name supported");
	}
}
